package com.xiaow.springsecuriydemo.utils;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @ClassName WebUtils
 * @Author xiaow
 * @DATE 2022/9/15 9:19
 **/

public class WebUtils {
    public static String renderString(HttpServletResponse response, String vlaue) {
        try {
            response.setStatus(200);
            response.setContentType("application/json");
            response.setCharacterEncoding("utf-8");
            response.getWriter().println(vlaue);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}
